﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 22:14:56
// 负责人：Sushee
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.Model;
namespace OF.Component.IDAL
{

    /// <summary>
    ///身份证信息 数据访问层接口  
    /// </summary>
    internal partial interface IIDCard
    {

        /// <summary>
        /// 根据断言条件获取单个身份证信息
        /// </summary>
        IDCardInfo QuerySingle(Expression<Func<IDCardInfo, bool>> predicate);

        /// <summary>
        /// 根据断言条件获获取身份证信息列表
        /// </summary>
        IList<IDCardInfo> QueryList(Expression<Func<IDCardInfo, bool>> predicate);

        /// <summary>
        /// 根据身份证和用户查询
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <param name="idNum">身份证号</param>
        /// <returns></returns>
        IDCardInfo GetByUserIDAndNum(long userId, string idNum);

        /// <summary>
        /// 根据用户查询
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <returns></returns>
        IDCardInfo GetByUserID(long userId);
    }


}